<!DOCTYPE html>
<html>

<head>
    <title>Construct aesthetic mappings</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
    <link rel="stylesheet" type="text/css" href="https://mzkit.org/assets/js/page.css">
</head>

<body>
    <div class="container">

        <table style="width: 100%;">
            <tr>
                <td>aes {ggplot2}</td>
                <td style="text-align: right;">R Documentation</td>
            </tr>
        </table>

        <h2>Construct aesthetic mappings</h2>

        <h3>Description</h3>

        <p><br /> Aesthetic mappings describe how variables in the data are mapped <br /> to visual properties (aesthetics) of geoms. Aesthetic mappings <br /> can be set in ggplot() and in individual layers.</p>

        <h3>Usage</h3>

        <div style="width: 100%; padding-left: 3%; color: black;">
            <pre><code class='language-R' style="color: black; font-weight:normal;"><strong>aes</strong>(
    <i>x</i> = <span style='color: blue !important;'>NULL</span>,
    <i>y</i> = <span style='color: blue !important;'>NULL</span>,
    <i>z</i> = <span style='color: blue !important;'>NULL</span>,
    <i>label</i> = <span style='color: blue !important;'>NULL</span>,
    <i>color</i> = <span style='color: blue !important;'>NULL</span>,
    <i>colour</i> = <span style='color: blue !important;'>NULL</span>,
    <i>alpha</i> = <span style='color: blue !important;'>NULL</span>,
    <i>fill</i> = <span style='color: blue !important;'>NULL</span>,
    <i>title</i> = <span style='color: blue !important;'>NULL</span>,
    <i>shape</i> = <span style='color: blue !important;'>NULL</span>,
    <i>class</i> = <span style='color: blue !important;'>NULL</span>,
    <i>...</i> = <span style='color: blue !important;'>NULL</span>);</code></pre>
        </div>

        <h3>Arguments</h3>

        <table>
            
<dt>x</dt>
<dd><p>List of name-value pairs in the form aesthetic = variable describing 
 which variables in the layer data should be mapped to which aesthetics 
 used by the paired geom/stat. The expression variable is evaluated 
 within the layer data, so there is no need to refer to the original 
 dataset (i.e., use ggplot(df, aes(variable)) instead of 
 <code>ggplot(df, aes(df$variable)))</code>. The names for x and y aesthetics 
 are typically omitted because they are so common; all other aesthetics
 must be named.</p></dd>


<dt>y</dt>
<dd><p>-</p></dd>


<dt>color</dt>
<dd><p>The color mapping name</p></dd>


<dt>colour</dt>
<dd><p>the alias name of the color parameter</p></dd>


<dt>class</dt>
<dd><p>mapping data of the element class group.</p></dd>


<dt>label</dt>
<dd><p>data source for the scatter annotation label text</p></dd>


<dt>env</dt>
<dd><p>[as <a href="/vignettes/clr/SMRUCC/Rsharp/Runtime/Environment.html">Environment</a>]</p></dd>

        </table>


        <h3 style="display: block;">Details</h3>

        <p>This function also standardises aesthetic names by converting color to 
 colour (also in substrings, e.g., point<em>color to point</em>colour) and 
 translating old style R names to ggplot names (e.g., pch to shape and 
 cex to size).</p>

        <h3 style="display: block">Authors</h3>

        SMRUCC genomics institute

        <h3>Value</h3>

        <p>A list with class uneval. Components of the list are either quosures 
 or constants.</p><h4>clr value class</h4><ul><li><a href="/vignettes/clr/ggplot/ggplotReader.html">ggplotReader</a></li></ul>

        <h3 style="display: none;">Examples</h3>

        

        <hr />
        <div style="text-align: center;">[Package <em>ggplot2</em> version 1.0.0.0 <a
                href="../ggplot2.html">Index</a>]
        </div>
    </div>
</body>

<script type="text/javascript" src="https://mzkit.org/assets/js/R_syntax.js"></script>
<script type="text/javascript" src="https://mzkit.org/assets/js/highlights.js"></script>
<script type="text/javascript">r_highlights("example_r");</script>

</html>